package com.gxuwz.attendance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gxuwz.attendance.dao.StudentDao;
import com.gxuwz.attendance.entity.Student;
import com.gxuwz.attendance.service.StudentService;
import com.gxuwz.attendance.vo.Page;

@Service("StudentServiceImpl")
public class StudentServiceImpl implements StudentService {
	
	@Autowired
	private StudentDao studentDao;

	@Override
	public List<Student> findByPage(Student student, Page page) {
		
		return studentDao.findByPage(student, page);
	}

	@Override
	public Integer getTotal(String studentName) {
		return studentDao.getTotal(studentName);
	}

	@Override
	public Student findByOne(String studentNo) {
		return studentDao.findByOne(studentNo);
	}

	@Override
	public boolean delete(String ids) {
		return studentDao.delete(ids);
	}

	@Override
	public boolean update(Student student) {
		return studentDao.update(student);
	}

	@Override
	public boolean add(Student student) {
		return studentDao.add(student);
	}

}
